package com.lagou.edu.factory;

import com.lagou.edu.utils.ConnectionUtils;


public class CreateFactory {


    //spring ioc 实例化bean的第二种方式:静态方法创建
    public static ConnectionUtils getConnectionUtils() {
        return new ConnectionUtils();
    }

    //spring ioc 实例化bean的第三种方式: 实例化方法创建
    public ConnectionUtils getInstance() {
        return new ConnectionUtils();
    }
}
